package com.bite.user.model;

import com.bite.user.dataobject.UserInfo;
import lombok.Data;

@Data
public class EmailUser {
    private String email;
    private String userName;

    public static EmailUser build(UserInfo userInfo) {
        EmailUser emailUser = new EmailUser()   ;
        emailUser.setEmail(userInfo.getEmail());
        emailUser.setUserName(userInfo.getUserName());
        return emailUser;
    }
}
